package com.yunxi.service.localService.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.yunxi.dao.quartz.JobAndTriggerMapper;
import com.yunxi.model.quartz.JobAndTrigger;
import com.yunxi.service.localService.JobAndTriggerService;
import org.springframework.stereotype.Service;

import java.util.List;


@Service(value = "jobAndTriggerServiceImpl")
public class JobAndTriggerServiceImpl extends ServiceImpl<JobAndTriggerMapper, JobAndTrigger> implements JobAndTriggerService {

	public List<JobAndTrigger> getJobAndTriggerDetails(int pageNum, int pageSize) {
		PageHelper.startPage(pageNum, pageSize);
		List<JobAndTrigger> list = this.baseMapper.getJobAndTriggerDetails();
		return list;
	}

}